<%@ page import="com.example.demo.User" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>系统首页</title>
</head>
<body>
<%
    User user = (User) session.getAttribute("user");
    System.out.print("<h2>"+user.getUserName()+"，欢迎您！您已成功登录</h2>");
%>

</body>
</html>